export const ss = {
  set(key: string, val: any) {
    return window.sessionStorage.setItem(key, JSON.stringify(val));
  },

  get(key: string) {
    const val = window.sessionStorage.getItem(key);
    return val ? JSON.parse(String(val)) : val;
  },
  remove(key: string) {
    return window.sessionStorage.removeItem(key);
  },
  clear() {
    return window.sessionStorage.clear();
  }
};
